
<template>
	<div class="filterFixed">
		<FInput v-model="inputValue" class="FInput-input" placeholder="查找的功能，如：城市" clearable>
			<template #prepend> 检索 </template>
			<template #suffix>
				<SearchOutlined />
			</template>
		</FInput>

		<FCheckboxGroup v-model="menuSetupFilter">
			<FCheckbox value="hot">
				热
			</FCheckbox>
			<FCheckbox value="new">
				新
			</FCheckbox>
			<FCheckbox value="recommend">
				荐
			</FCheckbox>
		</FCheckboxGroup>

		<a target="_black" href="https://gitee.com/ice-gl/icegl-three-vue-tres">
			<img src="https://gitee.com/ice-gl/icegl-three-vue-tres/badge/star.svg?theme=dark" alt="gitee-starts">
		</a>
		
	</div>
</template>
<script setup lang="ts">
import { inject } from 'vue'
import { FInput, FCheckbox, FCheckboxGroup } from '@fesjs/fes-design'
import { SearchOutlined } from '@fesjs/fes-design/icon'

const inputValue = inject('filterFixedInputValue')
const menuSetupFilter = inject('menuSetupFilter')

</script>

<style lang="less" scoped>
.filterFixed {
	position: fixed;
	top: 50px;
	background-color: #fff;
	padding: 8px 10px 6px;
	z-index: 999;
	box-shadow: -1px 3px 10px rgba(0, 0, 0, 0.2);
	width: calc(100% - 200px);
	display: flex;
	align-items: flex-end;

	.FInput-input {
		scale: 0.9;
		position: relative;
		width: 20em;
	}

	a {
		margin-left: 10px;
		position: relative;
	}
}
</style>